from face00 import  face_detect
from face01 import face_gather
from face02 import face_train
from face03 import face_recognition



def menu():
    while True:
        print("1.检测\n")
        print("2.采集\n")
        print("3.训练\n")
        print("4.识别\n")
        print("0.退出\n")
        num = int(input("请选择你要实现的功能："))
        if (num == 0):
            break
        elif num == 1:
            face_detect()
        elif num == 2:
            face_gather()
        elif num == 3:
            face_train()
        elif num == 4:
            face_recognition()
        else:
            print("输出错误!!!\n\n\n")


if __name__ == '__main__':
    menu()
        